package pers.lx.crm.entiy;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.Date;
import java.util.HashMap;
import java.util.List;

/**
 * Created by lxl on 2017/2/14.
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class BaseDO {

    protected Integer id ;

    protected Integer pageNum ;

    protected Integer pageSize ;

    protected Integer total ;

    protected List<?> list ;

    protected Date createDate ;

    protected Date updateDate ;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
        if ( this.pageNum <= 0 ){
            this.pageNum = 1 ;
        }
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
        if( this.pageSize <= 0 ){
            this.pageSize = 1 ;
        }
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public List<?> getList() {
        return list;
    }

    public void setList(List<?> list) {
        this.list = list;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }
}
